<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/order/orderDiscountRecordList.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .fixed-table-toolbar {
            top: -2px;
            right: 160px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>优惠列表</strong>' +
            '</li>' +
            '</ol>';
    });


    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>


<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="orderNum" name="orderNum" type="text" class="form-control shortInput"
                           placeholder="充电订单号">
                    <input id="discountNum" name="discountNum" type="text" class="form-control shortInput input-distance"
                           placeholder="优惠单号">
                    <input id="gunNo" name="gunNo" type="text" class="form-control shortInput input-distance"
                           placeholder="充电枪编号">
                    <select id="discountType" name="discountType" class="form-control chosen-select">
                        <%--0整单满减优惠券 1服务费满减优惠卷 2充电满折 3服务器满折 4代金券 5.生日免单 6.生日礼遇减免 7.会员优惠 8.权益金 9.企业优惠--%>
                        <option value="" selected="selected">优惠方式</option>
                        <option value="0">整单满减优惠券</option>
                        <option value="1">服务费满减优惠卷</option>
                        <option value="2">充电满折</option>
                        <option value="3">服务器满折</option>
                        <option value="4">代金券</option>
                        <option value="5">生日免单</option>
                        <option value="6">生日礼遇减免</option>
                        <option value="7">会员优惠</option>
                        <option value="8">权益金</option>
                        <option value="9">企业优惠</option>
                        <option value="10">活动满减</option>
                    </select>
                    <button class="btn btn-success input-distance" onclick="operationType.reLoad()">查询</button>
                    <button class="btn btn-default input-distance" style="height: 31px;" onclick="operationType.reset()">重置</button>
                    <button class="btn btn-success input-distance" onclick="operationType.batchHandleRows()">批量删除</button>
                    <button class="btn btn-success exportBtn input-distance" onclick="operationType.exportOrderDiscountRecord()">导出</button>
                    <<%--div class="pull-left search fr exportNumInput">
                        <input id="count" name="count" hidden type="text" class="form-control" autocomplete="off"
                               placeholder="导出条数">
                    </div>
                    <div class="pull-left search fr">

                    </div>--%>
                </div>
            </div>
            <div class="table-responsive" style="z-index: 1;">
                <table id="exampleTable" style="word-break:break-all;" data-mobile-responsive="true">
                </table>
                <%--批量--%>
                <form class='layui-form' id="open-main" style="display: none">
                    <div class='form-horizontal layui-form' style='width:100%;padding:10px;text-align: left'>
                        <div style='border-bottom: 0.5px solid #ccc;padding-bottom: 20px'>
                            <h1 id="submemberToChannel" style='font-size: 16px;color: #000'>确定批量删除信息？</h1>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    operationType.init();
</script>
</body>
</html>